package com.cfuture08.home.action.columns;

import com.cfuture08.eweb4j.component.dwz.DWZUtil;
import com.cfuture08.eweb4j.mvc.action.Action;
import com.cfuture08.eweb4j.mvc.action.ActionSupport;
import com.cfuture08.eweb4j.orm.dao.DAO;
import com.cfuture08.home.vo.Columns;

public class EditColumns extends ActionSupport {
	private Columns columns;

	public String execute() {
		out.print(DAO.update(this.columns) == true ? DWZUtil.getSuccessJson(
				"修改栏目" + columns.getName() + "成功", "xssylm",
				"showAllColumns.do", null) : DWZUtil.getFailedJson("修改栏目"
				+ this.columns.getName() + "失败"));

		return Action.AJAX;
	}

	public Columns getColumns() {
		return columns;
	}

	public void setColumns(Columns columns) {
		this.columns = columns;
	}
}
